package com.tsing.cedap.rest.controller;

import com.tsing.cedap.common.annotations.SystemLog;
import com.tsing.cedap.common.utils.ResultUtil;
import com.tsing.cedap.common.vo.ResultData;
import com.tsing.cedap.rest.service.IBannerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author TheTsing
 * @create 2022-02-25 15:02
 */
@Api(tags = "banner模块")
@RestController
@RequestMapping("/banner")
public class BannerController {

    @Autowired
    private IBannerService bannerService;

    @GetMapping("/policy")
    @ApiOperation(value = "获取OSS签名")
    @SystemLog(description = "获取OSS签名")
    public ResultData<Map<String, String>> policy() {
        return ResultUtil.success(bannerService.policy());
    }

}
